#!/usr/bin/env python
#coding: utf-8
'''
Created on 2017年2月22日

@author: Administrator
'''
from django.conf.urls import patterns, url

urlpatterns = patterns('account.views.admin',
    url(r'^login/$', 'login', name='account_login'),
    url(r'^loginout/$', 'loginout', name='account_loginout'),
    url(r'^checkusername/$', 'check_username', name='account_checkusername'),
)
urlpatterns += patterns('account.views.admin.user',
    url(r'^user/$', 'index', name='account_user_index'),
    url(r'^user/list/$', 'list', name='account_user_list'),
    url(r'^user/save/$', 'save', name='account_user_save'),
    url(r'^user/edit/$', 'edit', name='account_user_edit'),
    url(r'^user/update/$', 'update', name='account_user_update'),
    url(r'^user/detail/$', 'detail', name='account_user_detail'),
    url(r'^user/delete/$', 'delete', name='account_user_delete'),
    url(r'^user/activate/$', 'activate', name='account_user_activate'),
    url(r'^user/resource/$', 'user_resource', name='account_user_resource'),
    url(r'^user/resource/list/$', 'user_resource_list', name='account_user_resource_list'),
    url(r'^user/resource/save/$', 'save_resource', name='account_user_resource_save'),
    url(r'^user/funcresource/$', 'user_funcresource', name='account_user_funcresource'),
    url(r'^user/funcresource/list/$', 'user_funcresource_list', name='account_user_funcresource_list'),
    url(r'^user/funcresource/save/$', 'save_funcresource', name='account_user_funcresource_save'),
    url(r'^user/all/$', 'all', name='account_user_all'),
)
urlpatterns += patterns('account.views.admin.group',
    url(r'^group/$', 'index', name='account_group_index'),
    url(r'^group/list/$', 'list', name='account_group_list'),
)
urlpatterns += patterns('account.views.admin.usergroup',
    url(r'^usergroup/$', 'index', name='account_usergroup_index'),
    url(r'^usergroup/list/$', 'list', name='account_usergroup_list'),
)

